a=arm64;if [[ $(uname -a | grep "x86_64") != "" ]];then a=amd64;fi ;s=sillyGirl;cd;if [ ! -d $s ];then mkdir $s;fi ;cd $s;wget https://mirror.ghproxy.com/https://github.com/cdle/${s}/releases/download/main/${s}_linux_$a -O $s && chmod 777 $s &&pkill -9 $s ;echo "set sillyGirl port 8080" >>/etc/sillyGirl/sets.conf; $(pwd)/$s -d

npm i -g oicq@1
oicq && sed -i "s/\/\/ \"ws:\/\/your.address.com:8080/\"ws:\/\/127.0.0.1:8080\/qq\/receive/g" /root/.oicq/config.js

stty erase ^? && read -p "输入机器人QQ号:" JQRQQ

oicq $JQRQQ

echo '
#后台运行傻妞
cd && pm2 start "./sillyGirl/sillyGirl"
#后台运行oicq
pm2 start "oicq 机器人QQ号"
#pm2 save && pm2 startup
#自启设置，执行
cat >>/etc/profile.d/motd.sh <<-EOF
cd && pm2 start "./sillyGirl/sillyGirl"
pm2 start "oicq 机器人QQ号"
EOF
#傻妞要用的命令，比如设置管理员就执行如下命令
echo "set qq masters 管理员QQ号" >>/etc/sillyGirl/sets.conf
'


